package com.xyyl.patient.entity.mall;

import com.alibaba.fastjson.annotation.JSONField;
import com.xyyl.patient.entity.question.Prescription;
import com.xyyl.patient.entity.question.PrescriptionDetail;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
* @projectName:xyyl-oms-server
* @ClassName: MallOrderInfo
* @Description:MallOrderInfo
* @author @author wqs
* @date 2018-03-02 09:47:52
*/
public class MallOrderInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	// 主键
	private Integer id;
	// 用户id
	private Integer userId;
	// 订单的状态;0未确认,1确认,2已取消,3无效,4退货
	private Integer orderStatus;
	// 商品配送情况;0未发货,1已发货,2已收货,4退货
	private Integer shippingStatus;
	// 支付状态;0未付款;1付款中;2已付款
	private Integer payStatus;
	// 收货人的姓名,用户页面填写,默认取值表user_address
	private String consignee;
	// 收货人的详细地址,用户页面填写,默认取值于表user_address
	private String address;
	// 收货人的手机,用户页面填写,默认取值于表user_address
	private String mobile;
	// 0余额,1微信支付
	private Integer payId;
	// xyyl_mall_express id 快递公司ID
	private Integer expressId;
	// 快递单号
	private String expressNumber;
	// 快递费用
	private BigDecimal shippingFee;
	// 处方单ID 关联药品 xyyl_prescription_info prescription_id
	private Integer prescriptionId;
	// 商品的总金额
	private BigDecimal goodsAmount;
	// 应付款金额
	private BigDecimal orderAmount;

	public BigDecimal getOrderAmount() {
		return orderAmount;
	}

	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}

	// 订单生成时间
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date addTime;
	// 订单支付时间
	private Date payTime;
	// 订单配送时间
	private Date shippingTime;
	// 物流公司名称
	private String kcompany;
	// 处方单名称
	private String prescription;

	// sn
	private String ordersn;

	//医生名称
	private String realname;

	//药品
	private List<PrescriptionDetail> prescriptionDetailList;
	
	//快递附属信息, 案例 ,   圆通,yuantong,8400
	private String expressExt;
		
	public String getExpressExt() {
		return expressExt;
	}

	public void setExpressExt(String expressExt) {
		this.expressExt = expressExt;
	}

	//openid
	private String openId;

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public List<PrescriptionDetail> getPrescriptionDetailList() {
		return prescriptionDetailList;
	}

	public void setPrescriptionDetailList(List<PrescriptionDetail> prescriptionDetailList) {
		this.prescriptionDetailList = prescriptionDetailList;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getOrdersn() {
		return ordersn;
	}

	public void setOrdersn(String ordersn) {
		this.ordersn = ordersn;
	}

	public String getKcompany() {
		return kcompany;
	}

	public void setKcompany(String kcompany) {
		this.kcompany = kcompany;
	}

	public String getPrescription() {
		return prescription;
	}

	public void setPrescription(String prescription) {
		this.prescription = prescription;
	}

	/**
	 * 设置：主键
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 获取：主键
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * 设置：用户id
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	/**
	 * 获取：用户id
	 */
	public Integer getUserId() {
		return userId;
	}

	/**
	 * 设置：订单的状态;0未确认,1确认,2已取消,3无效,4退货
	 */
	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	/**
	 * 获取：订单的状态;0未确认,1确认,2已取消,3无效,4退货
	 */
	public Integer getOrderStatus() {
		return orderStatus;
	}

	/**
	 * 设置：商品配送情况;0未发货,1已发货,2已收货,4退货
	 */
	public void setShippingStatus(Integer shippingStatus) {
		this.shippingStatus = shippingStatus;
	}

	/**
	 * 获取：商品配送情况;0未发货,1已发货,2已收货,4退货
	 */
	public Integer getShippingStatus() {
		return shippingStatus;
	}

	/**
	 * 设置：支付状态;0未付款;1付款中;2已付款
	 */
	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}

	/**
	 * 获取：支付状态;0未付款;1付款中;2已付款
	 */
	public Integer getPayStatus() {
		return payStatus;
	}

	/**
	 * 设置：收货人的姓名,用户页面填写,默认取值表user_address
	 */
	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}

	/**
	 * 获取：收货人的姓名,用户页面填写,默认取值表user_address
	 */
	public String getConsignee() {
		return consignee;
	}

	/**
	 * 设置：收货人的详细地址,用户页面填写,默认取值于表user_address
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * 获取：收货人的详细地址,用户页面填写,默认取值于表user_address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * 设置：收货人的手机,用户页面填写,默认取值于表user_address
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	/**
	 * 获取：收货人的手机,用户页面填写,默认取值于表user_address
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * 设置：0余额,1微信支付
	 */
	public void setPayId(Integer payId) {
		this.payId = payId;
	}

	/**
	 * 获取：0余额,1微信支付
	 */
	public Integer getPayId() {
		return payId;
	}

	/**
	 * 设置：xyyl_mall_express id  快递公司ID
	 */
	public void setExpressId(Integer expressId) {
		this.expressId = expressId;
	}

	/**
	 * 获取：xyyl_mall_express id  快递公司ID
	 */
	public Integer getExpressId() {
		return expressId;
	}

	/**
	 * 设置：快递单号
	 */
	public void setExpressNumber(String expressNumber) {
		this.expressNumber = expressNumber;
	}

	/**
	 * 获取：快递单号
	 */
	public String getExpressNumber() {
		return expressNumber;
	}

	/**
	 * 设置：快递费用
	 */
	public void setShippingFee(BigDecimal shippingFee) {
		this.shippingFee = shippingFee;
	}

	/**
	 * 获取：快递费用
	 */
	public BigDecimal getShippingFee() {
		return shippingFee;
	}

	/**
	 * 设置：处方单ID   关联药品 xyyl_prescription_info  prescription_id
	 */
	public void setPrescriptionId(Integer prescriptionId) {
		this.prescriptionId = prescriptionId;
	}

	/**
	 * 获取：处方单ID   关联药品 xyyl_prescription_info  prescription_id
	 */
	public Integer getPrescriptionId() {
		return prescriptionId;
	}

	/**
	 * 设置：商品的总金额
	 */
	public void setGoodsAmount(BigDecimal goodsAmount) {
		this.goodsAmount = goodsAmount;
	}

	/**
	 * 获取：商品的总金额
	 */
	public BigDecimal getGoodsAmount() {
		return goodsAmount;
	}

	/**
	 * 设置：订单生成时间
	 */
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	/**
	 * 获取：订单生成时间
	 */
	public Date getAddTime() {
		return addTime;
	}

	/**
	 * 设置：订单支付时间
	 */
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	/**
	 * 获取：订单支付时间
	 */
	public Date getPayTime() {
		return payTime;
	}

	/**
	 * 设置：订单配送时间
	 */
	public void setShippingTime(Date timestamp) {
		this.shippingTime = timestamp;
	}

	/**
	 * 获取：订单配送时间
	 */
	public Date getShippingTime() {
		return shippingTime;
	}
}
